package com.lvmama.pangolin.hotel.service.impl;

import com.lvmama.pangolin.core.AbstractService;
import com.lvmama.pangolin.entity.hotel.HotelCdetail;
import com.lvmama.pangolin.entity.hotel.HotelCommodityDetailError;
import com.lvmama.pangolin.hotel.service.HotelCommodityDetailErrorService;
import com.lvmama.pangolin.mybatis.mapper.hotel.HotelCommodityDetailErrorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;


/**
 * Created by zhoutianqi on 2017/08/15.
 */
@Service
@Transactional
public class HotelCommodityDetailErrorServiceImpl extends AbstractService<HotelCommodityDetailError> implements HotelCommodityDetailErrorService {
    @Autowired
    private HotelCommodityDetailErrorMapper hotelCommodityDetailErrorMapper;

    @Override
    public int saveCdetail(HotelCdetail t) {
        return hotelCommodityDetailErrorMapper.saveCdetail(t);
    }

    @Override
    public List<HotelCommodityDetailError> queryLogByMap(Map<String, Object> map) throws Exception {
        return hotelCommodityDetailErrorMapper.queryLogByMap(map);
    }

    @Override
    public HotelCommodityDetailError findById(String id) {
        return hotelCommodityDetailErrorMapper.findById(id);
    }

    @Override
    public int update(HotelCommodityDetailError hotel) {
        return hotelCommodityDetailErrorMapper.update(hotel);
    }

    @Override
    public int deleteHotelByMap(Map<String, Object> map) {
        return hotelCommodityDetailErrorMapper.deleteHotelByMap(map);
    }

    @Override
    public HotelCommodityDetailError findByObject(HotelCommodityDetailError hotel) {
        return hotelCommodityDetailErrorMapper.findByObject(hotel);
    }

    @Override
    public int deleteByObject(HotelCommodityDetailError hotel){
        return hotelCommodityDetailErrorMapper.deleteByObject(hotel);
    }
}
